<h1><%= "#{t(:listing)} #{t(:invoice_item_types)}" %></h1>

<table>
  <thead>
    <tr>
      <th>Label</th>
      <th><%= t :created_at %></th>
      <th><%= t :updated_at %></th>
      <th><%= t :created_by %></th>
      <th><%= t :updated_by %></th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @invoice_item_types.each do |invoice_item_type| %>
      <tr>
        <td><%= invoice_item_type.label %></td>
        <td><%= invoice_item_type.created_at %></td>
        <td><%= invoice_item_type.updated_at %></td>
        <td><%= invoice_item_type.created_by %></td>
        <td><%= invoice_item_type.updated_by %></td>
        <td><%= link_to "#{t(:show)}", invoice_item_type %></td>
        <td><%= link_to "#{t(:edit)}", edit_invoice_item_type_path(invoice_item_type) %></td>
        <td><%= link_to "#{t(:destroy)}", invoice_item_type, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to "#{t(:new_invoice_item_type)}", new_invoice_item_type_path %>
